﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace CheckLift.Linq
{
    public class BaseData
    {
        protected CheckLiftDataDataContext dc = new CheckLiftDataDataContext();//.Instance;

        protected ObservableCollection<T> Convert<T>(IEnumerable<T> enumColl) where T : class
        {
            ObservableCollection<T> list = new ObservableCollection<T>();
            foreach (T item in enumColl)
            {
                list.Add(item);
            }
            return list;
        }
    }
}
